package com.kingzoon.seckill.base.swagger;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableWebMvc
@EnableSwagger2
public class ApplicationSwaggerConfig {
	
	@Bean
	public Docket addUserDocket(){
		Docket docket = new Docket(DocumentationType.SWAGGER_2);
		ApiInfo apiInfo = new ApiInfo(
				"resfule API", 
				"API Document管理", 
				"V1.0.0", 
				"www.kingzoon.com", 
				"www.kingzoon.com", 
				"", 
				"");
		docket.apiInfo(apiInfo).forCodeGeneration(true);
		return docket;
	}

}
